package com.rpp.boot;

import com.rpp.client.RPCConsumer;
import com.rpp.service.IUserService;

public class ConsumerBoot {

    public static void main(String[] args) throws InterruptedException {

        //1.创建代理对象
        IUserService service = (IUserService) RPCConsumer.createProxy(IUserService.class);

        //2.循环给服务器写数据
        while (true) {
            String result = service.sayHello("hello rpp !!");
            System.out.println("返回结果：" + result);
            Thread.sleep(2000);
        }

    }
}
